package com.hsm6;

import java.util.TreeSet;

public class TestStudent3 {
    public static void main(String[] args) {
        TreeSet<Student> ts = new TreeSet<>();
        ts.add(new Student(20,"hsm"));
        ts.add(new Student(25,"cy"));
        ts.add(new Student(21,"ada"));
        ts.add(new Student(28,"ada"));
        ts.add(new Student(20,"ada"));
        System.out.println(ts.size());
        System.out.println(ts);

    }
}
